﻿#添加头文件
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/3rdlib/include/plugin/core)
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/3rdlib/include/plugin)
# 添加子目录（每个子目录下都必须有自已的CMakeLists.txt文件
add_subdirectory(PluginManager)

#install 插件文件主要
SET(P_SRC ${CMAKE_CURRENT_SOURCE_DIR})
file(GLOB INTERFACE_CORE ${P_SRC}/interface/core/*.h)
file(GLOB INTERFACE_CORE_MODULE ${P_SRC}/interface/core/module/*.h)
file(GLOB INTERFACE_CORE_NONPLUGIN ${P_SRC}/interface/core/nonplugin/*.h)
file(GLOB INTERFACE_CORE_OBSERVER ${P_SRC}/interface/core/observer/*.h)
file(GLOB INTERFACE_CORE_PORTABILITY ${P_SRC}/interface/core/portability/*.h)
file(GLOB INTERFACE_CORE_UTILFUNC ${P_SRC}/interface/core/utilfunc/*.h)

#install 插件库文件

#管理插件库文件
file(GLOB INTERFACE_MANAGER ${P_SRC}/interface/manager/*.h)

#
install(FILES ${INTERFACE_CORE} DESTINATION ${PROJECT_SOURCE_DIR}/3rdlib/include/plugin/core COMPONENT headers)
install(FILES ${INTERFACE_CORE_MODULE} DESTINATION ${PROJECT_SOURCE_DIR}/3rdlib/include/plugin/core/module COMPONENT headers)
install(FILES ${INTERFACE_CORE_NONPLUGIN} DESTINATION ${PROJECT_SOURCE_DIR}/3rdlib/include/plugin/core/nonplugin COMPONENT headers)
install(FILES ${INTERFACE_CORE_OBSERVER} DESTINATION ${PROJECT_SOURCE_DIR}/3rdlib/include/plugin/core/observer COMPONENT headers)
install(FILES ${INTERFACE_CORE_PORTABILITY} DESTINATION ${PROJECT_SOURCE_DIR}/3rdlib/include/plugin/core/portability COMPONENT headers)
install(FILES ${INTERFACE_CORE_UTILFUNC} DESTINATION ${PROJECT_SOURCE_DIR}/3rdlib/include/plugin/core/utilfunc COMPONENT headers)

#
install(FILES ${INTERFACE_MANAGER} DESTINATION ${PROJECT_SOURCE_DIR}/3rdlib/include/plugin/manager COMPONENT headers)





